import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import 'element-plus/dist/index.css'
import '@/styles/index.scss'
import 'remixicon/fonts/remixicon.css'
import { bindPermission } from '@/directives/permission'
import initApp from './initApp'

const app = createApp(App)
app
  .use(createPinia())
  .use(router)
  .directive('permission', bindPermission)
  .mount('#app')
initApp(router)
